<?php if (!defined('THINK_PATH')) exit();?><!doctype html>
<html>
<head>
<meta charset="utf-8">
<title><?php echo ($title); ?></title>
<link href="/Public/css/admin.css" rel="stylesheet" type="text/css">
<style>
.xzct{ width:980px; height:auto; overflow:hidden; margin:30px auto;}
.xzct form p input{ border:1px solid #ccc; width:450px; height:40px; text-indent:2em; font-size:18px;}
.xzct form p{ font-size:18px; line-height:36px; color:#0089e1; margin-bottom:15px;}
.xzct form p textarea{resize: none; width:420px; height:300px; border:1px solid #ccc; padding:15px;}
.xzct form input.button{background: #43a1da none repeat scroll 0 0;border: 1px solid #4ba6db; border-radius: 5px;color: #fff;cursor: pointer; height: 30px; margin: 5px 5px 5px 0; width: 100px;}
.xzct form p select{ border:1px solid #ccc;}
</style>
</head>

<body>
<div class="head">
	<img src="/Public/images/kg.jpg" class="fl"/>
    <form method="post" class="fl">
    	<input name="search" type="text" class="search fl" placeholder="请输入你想要搜索的信息">
        <input type="submit" name="submit" value="智搜一下" class="submit">
    </form>
    <p class="fr">姓名</p>
</div>
<div class="bmss">
	<div class="bmss1">
    	<p><a href="#">疾病百科</a><a href="#">咨询智库</a><a href="/index.php?s=/Home/Jjzk/index">竞价智库</a><a href="#">策划智库</a></p>
    </div>
</div>
<div class="xzct">
	<form>
    	<p>标题：<input type="text" placeholder="请填写标题" class="title"/></p>
        <p>标签：<input type="text" placeholder="请填写标签" class="label"/></p>
        <p>病种：<select>
                    <?php if(is_array($list)): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><option value="<?php echo ($vo["level"]); ?>" ><?php echo ($vo["bzname"]); ?></option><?php endforeach; endif; else: echo "" ;endif; ?>
        		</select></p>
        <p>内容：<textarea></textarea></p>
        <input type="button" name="sumit" value="提交" id="sumit" class="button"/>
    </form>
</div>
</body>
</html>
<script type="text/javascript" src="/Public/js/jquery/jquery.min.js"></script>
<script type="text/javascript" src="/Public/js/jquery/jquery.cookie.js"></script>
<script>
$(function(){
	var name =	$.cookie('name');
	$(".head p").html(name);
	$("form select option").each(function() {
        var length=$(this).val().split(",").length;
		var jl=length*20+'px';
		$(this).css("text-indent",jl);
    });
	$("#sumit").click(function(){
		var title=$("form p input.title").val();
		var label=$("form p input.label").val();
		var bzname=$("form select option:selected").html();
		var content=$("form p textarea").val();
		$.ajax({
			type:'POST',
			url:"/index.php?s=/Home/Xzct/ctadd",
			data:{name:name,title:title,label:label,bzname:bzname,content:content},
			success: function(data){
				top.location.reload();
			}
		});
	});
})
</script>